<?php

namespace app\api\validate;

use think\Validate;

class Address extends Validate
{
    protected $rule = [
        "nickname" => "require",
        "tel" => "require|mobile",
        "classes" => "require",
        // "city" => "require",
        // "district" => "require",
        //"town" => "require",
        "details" => "require",
    ];

    protected $message = [
        'nickname.require' => '请填写收货人',
        'tel.require' => '请填写联系电话',
        'tel.mobile' => '电话格式错误',
        'classes.require' => '请选择收货地址',
        // 'city.require' => '请选择市',
        // 'district.require' => '请选择区/县',
        //'town.require' => '请选择街道',
        'details.require' => '请填写详细地址',
    ];

}